import Ember from 'ember';

export default Ember.Controller.extend({
    constants: Constants,
    queryCondition:'',
    showpopInvitePassModal:false,
    mainController: Ember.inject.controller('business.mainpage'),
    actions:{
      //跳转楼宇编辑页
      toBuildDetailPage(building){
        if(building){
          let id=building.get('id');
          this.get("mainController").switchMainPage('building-detail',{id:id,editMode:"edit"});
        }else{
          this.get("mainController").switchMainPage('building-detail',{editMode:"add",id:''});
        }
      },
    }
});
